import { BasicColumn } from '/@/components/Table/src/types/table';

import { useI18n } from '/@/hooks/web/useI18n';

const { t } = useI18n();

export function getUserColumns(): BasicColumn[] {
  return [
    {
      title: t('routes.components.permissionModal.userId'),
      dataIndex: 'id',
      fixed: 'left',
      align: 'left',
      width: 150,
    },
    {
      title: t('routes.components.permissionModal.username'),
      dataIndex: 'name',
      align: 'center',
      width: 150,
      slots: { customRender: 'name' },
    },
  ];
}

export function getDirectoryColumns(): BasicColumn[] {
  return [
    {
      title: t('routes.components.documentReuseModal.catalogName'),
      dataIndex: 'title',
      align: 'left',
      slots: { customRender: 'title' },
    },
  ];
}
